package Chapter2.Comparing.c2;
import java.util.Scanner;

public class BankUser {
    public static void main(String[] args) {
        Bank bank = new Bank();
        System.out.println("Do u want to create an account？Y/N");
        Scanner scanner = new Scanner(System.in);
        String str1 = scanner.nextLine();
        if (str1.equals("Y")) {
            bank.setAccount(bank.uuid());
            System.out.println("your account is:" + bank.getAccount());
        }
        else {
            System.exit(0);
        }

        System.out.println("please deposit your money");
        double d = scanner.nextDouble();
        bank.setBalance(d);
        scanner.nextLine();

        System.out.println("please set your password");
        String str2 = scanner.nextLine();
        bank.setPassword(str2);

        System.out.println("your account description: \n"+ bank.getAccount()+ "\n" + bank.getPassword()+"\n" + bank.getBalance() +"\n"+ bank.getInterestRate()+"\n"+ bank.getMinBlance());
    }
}
